Automattic\WooCommerce\Blocks\BlockTypesController A

Total Complexity 54
Dependencies 9
Dependents 1
Total lines 640
Lines of code 414
Logical lines of code 129
Comment lines 172
Methods 16
Properties 3

Methods 16

Method Rating Maintainability Complexity Lines of code
get_block_types()
A
29
8 160
add_data_attributes()
A
49 11 28
enqueue_block_style_for_classic_themes()
A
51 10 27
get_registered_blocks_with_woocommerce_parent()
S
52 6 28
get_widget_area_block_types()
S
47 1 43
register_block_patterns()
S
48 1 42
register_block_metadata()
S
62 3 11
block_should_have_data_attributes()
S
62 3 10
register_blocks()
S
66 2 8
bypass_block_metadata_doing_it_wrong()
S
71 2 6
redirect_to_field()
S
69 2 6
hide_legacy_widgets_with_block_equivalent()
S
62 1 14
register_block_categories()
S
62 1 13
__construct()
S
74 1 5
init()
S
62 1 10
delete_product_transients()
S
81 1 3